/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/iBeacon.html#wxstartbeacondiscoveryobject)
 * @param uuids [string[]] iBeacon设备广播的 uuids
 */
export default function start_beacon_discovery(uuids: string[]) {
	return new Promise<boolean>((resolve, reject) => {
		wx.startBeaconDiscovery({
			uuids,
			fail() {
				reject(false);
			},
			success() {
				resolve(true);
			}
		});
	});
}
